/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "大数据销售订单表",TableName = "big_data_sales_order")]
    public partial class big_data_sales_order:BaseEntity
    {
        /// <summary>
       ///SAP销售订单表id
       /// </summary>
       [Key]
       [Display(Name ="SAP销售订单表id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid big_data_sales_order_id { get; set; }

       /// <summary>
       ///SAP销售订单号
       /// </summary>
       [Display(Name ="SAP销售订单号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string sap_order_no { get; set; }

       /// <summary>
       ///SAP销售开票凭证
       /// </summary>
       [Display(Name ="SAP销售开票凭证")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string sap_sales_voucher { get; set; }

       /// <summary>
       ///SAP销售交货单号
       /// </summary>
       [Display(Name ="SAP销售交货单号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string sap_sales_delivery_order_no { get; set; }

       /// <summary>
       ///SAP经销商客户的编号
       /// </summary>
       [Display(Name ="SAP经销商客户的编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string sap_dealer_customer_no { get; set; }

       /// <summary>
       ///运达方经销商ERP号
       /// </summary>
       [Display(Name ="运达方经销商ERP号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string dealer_code { get; set; }

       /// <summary>
       ///运达方经销商名称
       /// </summary>
       [Display(Name ="运达方经销商名称")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string dealer_name { get; set; }

       /// <summary>
       ///售达方经销商ERP号
       /// </summary>
       [Display(Name ="售达方经销商ERP号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string sold_dealer_code { get; set; }

       /// <summary>
       ///售达方经销商名称
       /// </summary>
       [Display(Name ="售达方经销商名称")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string sold_dealer_name { get; set; }

       /// <summary>
       ///入库时间
       /// </summary>
       [Display(Name ="入库时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? in_stock_date { get; set; }

       /// <summary>
       ///VIN码
       /// </summary>
       [Display(Name ="VIN码")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string vin { get; set; }

       /// <summary>
       ///销售订单创建时间
       /// </summary>
       [Display(Name ="销售订单创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ERDAT { get; set; }

       /// <summary>
       ///销售订单修改时间
       /// </summary>
       [Display(Name ="销售订单修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? AEDAT { get; set; }

       /// <summary>
       ///DMS销售订单号
       /// </summary>
       [Display(Name ="DMS销售订单号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string dms_order_no { get; set; }

       /// <summary>
       ///物料编码
       /// </summary>
       [Display(Name ="物料编码")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string MATNR { get; set; }

       /// <summary>
       ///对象清单编号
       /// </summary>
       [Display(Name ="对象清单编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string OBKNR { get; set; }

       /// <summary>
       ///对象清单行号
       /// </summary>
       [Display(Name ="对象清单行号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string OBZAE { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///推送状态，0:未推送，1:已推送
       /// </summary>
       [Display(Name ="推送状态，0:未推送，1:已推送")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int status { get; set; }

       /// <summary>
       ///订单状态
       /// </summary>
       [Display(Name ="订单状态")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string order_status { get; set; }

       /// <summary>
       ///车辆分类
       /// </summary>
       [Display(Name ="车辆分类")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string order_car_classify { get; set; }

       /// <summary>
       ///大区
       /// </summary>
       [Display(Name ="大区")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string order_org_name { get; set; }

       /// <summary>
       ///客户分类
       /// </summary>
       [Display(Name ="客户分类")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string order_customer_classify { get; set; }

       /// <summary>
       ///客户名称
       /// </summary>
       [Display(Name ="客户名称")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string order_customer_name { get; set; }

       /// <summary>
       ///省
       /// </summary>
       [Display(Name ="省")]
       [MaxLength(20)]
       [Column(TypeName="varchar(20)")]
       public string order_province { get; set; }

       /// <summary>
       ///市
       /// </summary>
       [Display(Name ="市")]
       [MaxLength(20)]
       [Column(TypeName="varchar(20)")]
       public string order_city { get; set; }

       /// <summary>
       ///经销、直销
       /// </summary>
       [Display(Name ="经销、直销")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string order_sales { get; set; }

       /// <summary>
       ///材料code
       /// </summary>
       [Display(Name ="材料code")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       public string order_material_code { get; set; }

       /// <summary>
       ///材料name
       /// </summary>
       [Display(Name ="材料name")]
       [MaxLength(300)]
       [Column(TypeName="varchar(300)")]
       public string order_material_name { get; set; }

       /// <summary>
       ///订单性质
       /// </summary>
       [Display(Name ="订单性质")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string order_nature { get; set; }

       
    }
}